import request from '@/utils/request'
import {baseUrlConfig} from '@/config/config'
const basePath = baseUrlConfig.businessBaseUrl



interface Order {
    column: String;
    method: String;
}
export interface PageListType {
    pageNum: number;
    pageSize: number;
    condition: {
        alarmType: String;
        terminal?: String;
        createTime?: String;
        order?: Array<Order>
    }
}

export const loadProjectData = (data:any) => {
  return request({
    url: basePath + '/monitoring/construction/pageList',
    method: 'post',
    data
  })
}
export const loadProjectCountData = () => {
  return request({
    url: basePath + '/monitoring/construction/count',
    method: 'get'
  })
}

export const loadDailyApplayData = (data:any) => {
  return request({
    url: basePath + '/monitoring/construction/day/list',
    method: 'post',
    data
  })
}

export const loadDailyApplayCountData = () => {
  return request({
    url: basePath + '/monitoring/construction/day/count',
    method: 'get'
  })
}
